var now = getNowFormatDateTime(); 
var username = sessionStorage.getItem("name");
var userid = sessionStorage.getItem("userId");
var repairid=GetQueryString("repairid");
var photoUrl = [];//拍照列表
var _config ;
var usid="";
$(document).ready(function(){
	$("#username").prepend(username);
	$("#repairid").append(repairid);
	$.ajax({
			url: '../../repair_info/getSelectBody'
			,type:'post'
			,dataType:'json'
			,contentType: "application/json; charset=utf-8"
			,data:JSON.stringify({"repairid":repairid})  
			,success: function(res){
				console.log(res.data);
				var resdata = res.data[0];
				$('#repairdate').append(resdata.repairdate);
				$('#shopcode').append(resdata.shopcode);
				$('#shopname').append(resdata.deptname);
				$('#tel').append(resdata.tel);
				$('#repairtype').append(resdata.name);
				$('#instruction').append(resdata.instruction);
				usid = resdata.dutyuser;
			}
	});
});
function ding(){
	$.ajax({
		url: '../../repair_info/remind'
		,type:'post'
		,dataType:'json'
		,async: false
		,contentType: "application/json; charset=utf-8"
		,data:JSON.stringify({"agentid":"1430279035","userid":usid,"url":"http://123.56.177.178:8383/unite_platform/mobile_page/index_weixiu?v="+Math.random(),"title":"门店报修通知","text":"报修单号"+repairid})  
		,success: function(res){
		}
	});
	layer.msg("操作成功",{time:1000},function(){
			history.go(-1);
	});
}